package com.atguigu.yygh.order.service;

import com.atguigu.yygh.model.order.OrderInfo;
import com.atguigu.yygh.vo.order.OrderCountQueryVo;
import com.atguigu.yygh.vo.order.OrderQueryVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

public interface OrderInfoService extends IService<OrderInfo> {
    Long submitOrder(Long patientId, String scheduleId,String hoscode);

   

    OrderInfo getOrder(Long orderId);

    Long checkExistOrder(Long patientId, String scheduleId);

    Page<OrderInfo> selectPage(Long pageNum, Long pageSize, OrderQueryVo orderQueryVo);

    void paySuccess(Long orderId, Map<String,String> map);

    void cancelOrder(Long orderId);

    Integer checkCancelOrderCount(Long patientId, String scheduleId);

    Map getOrderCount(OrderCountQueryVo orderCountQueryVo);
}
